#include <stdio.h>
#include <conio.h>

void swap(int *x, int *y);

int main(){
	int x = 5;
	int y = 3;

	printf("Out of swap : *x=%d, *y=%d\n",x,y);
	swap(&x,&y);

	return 0;
}

void swap(int *x, int *y){
	int temp;

	temp = *x;
	*x = *y;
	*y = temp;
	printf("In swap : *x=%d, *y=%d\n",*x,*y);
}